import { Configuration } from 'log4js';

// 日志的配置文件  可不看
export const config: Configuration = {
  appenders: {
    access: {
      type: 'dateFile',
      filename: 'log/access.log',
      pattern: '-yyyy-MM-dd',
      category: 'http',
    },
    console: {
      type: 'console',
      layout: {
        type: 'colored',
      },
    },
  },
  categories: {
    default: {
      appenders: ['access', 'console'],
      level: 'INFO',
    },
  },
};
